<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="f" %>
<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
	<jsp:include page="../common/header.jsp"/>
	<jsp:include page="../../common/mydate.jsp"></jsp:include>
	<jsp:include page="../../common/validform.jsp"></jsp:include>
	<jsp:include page="../../common/layer.jsp"></jsp:include>
	<jsp:include page="../../common/webupload.jsp"></jsp:include>
	<jsp:include page="../../common/ueditor.jsp"></jsp:include>
</head>
<body>
<div class="place">
    <span>位置：</span>
    <ul class="placeul">
        <li><a href="${pathUrl}/admin/adminUser/index">系统用户</a></li>
        <li><a href="#">新增</a></li>
    </ul>
</div>
<form action="${pathUrl}/admin/adminUser/saveOrUpdate" class="vfrom" enctype="multipart/form-data" method="post"  enctype="application/x-www-form-urlencoded">
<input type="hidden" name="id" value="${adminUser.id }">
<input type="hidden" name="is_add" value="${is_add }">
<div class="session-main">
    <div class="formbody">
        <ul class="forminfo">
           
          	<li><label>用户名<b>*</b></label><input id="username" datatype="*" nullmsg="请输入用户名！" value="${adminUser.username }" <c:if test="${is_add eq 1 }">readonly="readonly"</c:if>   <c:if test="${is_add eq 0 }">ajaxurl="${pathUrl }/admin/adminUser/validName"</c:if> name="username" type="text" class="dfinput"><i class="Validform_checktip">请输入用户名</i></li>
            <li><label>密码<b>*</b></label><input name="password"  datatype="*" nullmsg="请输入密码！" value="${adminUser.password }" id="password" type="text" class="dfinput"><i class="Validform_checktip">请输入密码</i></li>
            <li><label>是否启用<b>*</b></label>
               <c:choose>
                 <c:when test="${adminUser.status eq 1 }">
                 <cite><input name="status" type="radio" value="1" checked="checked">是&nbsp;&nbsp;&nbsp;&nbsp;<input name="status" type="radio" value="0">否</cite>
                 </c:when>
                  <c:when test="${adminUser.status eq 0 }">
                		 <cite><input name="status" type="radio" value="1" >是&nbsp;&nbsp;&nbsp;&nbsp;<input name="status" type="radio" value="0" checked="checked">否</cite>
                 </c:when>
                 <c:otherwise>
                 	<cite><input name="status" type="radio" value="1" checked="checked">是&nbsp;&nbsp;&nbsp;&nbsp;<input name="status" type="radio" value="0" >否</cite>
                 </c:otherwise>
               </c:choose>
            </li>
            <li><label>备注</label><textarea name="remark" cols="" rows="" class="textinput">${adminUser.remark }</textarea></li>
       
            <li><label>&nbsp;</label><input name="" type="submit" class="btn" value="确认保存">
               <input type="button" class="btn" onclick="javascript:window.location.href='${pathUrl}/admin/adminUser/index'" value="返回" style=" background: #57e980;">
            </li>
        </ul>
    </div>
</div>
</form>
    <script type="text/javascript">
   $(function(){
         //验证
       $(".vfrom").Validform();

         
	    
	  
	
   });
 </script>
</body>
</html>